package mspdt.ubzuuch.mn;

import android.app.Activity;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.widget.LinearLayout;

public class PanoramaActivity extends Activity{
	
	private String image_url;
	private LinearLayout main_ll;
	private ImageView image;
	private ImageLoader img;
	@Override
	public void onCreate(Bundle bundle)
	{
		super.onCreate(bundle);
		setContentView(R.layout.panorama_view);
		Bundle bundles = getIntent().getExtras();
		image_url = bundles.getString("image");
		img=new ImageLoader(this);
		main_ll =(LinearLayout)findViewById(R.id.panorama_main_ll);
		main_ll.setOnClickListener(new OnClickListener() {
			
			@Override
			public void onClick(View v) {
				// TODO Auto-generated method stub
				finish();
				overridePendingTransition(R.anim.no_anim, R.anim.bottom_out);
			}
		});
		image=(ImageView)findViewById(R.id.panorama_image);
		img.DisplayImage(image_url, image);
	}
	@Override
	public void onBackPressed() {
	   finish();
	   overridePendingTransition(R.anim.no_anim, R.anim.bottom_out);
	}
}
